package com.sali.function_interface;

import java.util.function.Consumer;

/**
 * 消费型接口，有一个输入参数，没有返回值
 */
public class d_ConsumerInterface {

    public static void main(String[] args) {
        Consumer<String> consumer = s -> System.out.println(s);
        consumer.accept("abc");
    }

}
